<?php
	//PHP stuffs
        error_reporting(E_ALL);
	set_time_limit(0);

        require ('./includes/define.php');
        require_once('./includes/require.php');
        $modules['user'] = rehashModules('user');


        /* lets create the classes that won't be changing */
        $cli = new cli ();
        $parse = new parse();
        $con = null; //the array of connections
        $nicks = null; //all the nicks we will deal with in the future

        /* lets create our first IRC connections - perhaps request this from the CLI eventually or something but... */
        $nfo =null;
	require_once(CONFIG .'servers.php');
        $num = count($nfo) -1;
        
        for ($i = 0; $i <= $num; $i++)
        {
                $initArr = initIrc($nfo[$i]);
                $con[$i] = $initArr['irc'];
                $streams[$i] = $initArr['stream'];
                $myNick[$i] = $initArr['nick'];
        }
        
        /* now lets loop and check the connections*/

?>
